<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Hello World</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">{{content}}</div>
    <script>
        // var dom = document.getElementById("app");
        // dom.innerHTML = 'Hello World';
        // setTimeout(function() {
        //     dom.innerHTML = 'bye world'
        // },  1000)


        var app = new Vue({
            el: '#app',
            data: {
                content: 'Hello World搞起来'
            }
        });
        setTimeout(function() {
            app.$data.content = '今晚要加班';
        }, 1000);
    </script>
</body>
</html>